import request from '@/utils/request'

// 查询费用新增列表
export function listCost(query) {
	return request({
		url: '/charge/cost/list',
		method: 'get',
		params: query
	})
}

// 查询费用新增详细
export function getCost(costId) {
	return request({
		url: '/charge/cost/' + costId,
		method: 'get'
	})
}

// 新增费用新增
export function addCost(data) {
	return request({
		url: '/charge/cost',
		method: 'post',
		data: data
	})
}

// 修改费用新增
export function updateCost(data) {
	return request({
		url: '/charge/cost',
		method: 'put',
		data: data
	})
}

// 删除费用新增
export function delCost(costId) {
	return request({
		url: '/charge/cost/' + costId,
		method: 'delete'
	})
}